
<div class="btn-group">
	<a href="<?php echo site_url('acount/index')?>" class='btn'> <i class="fa fa-arrow-left"></i> <?php echo lang('back_list')?></a>
</div>

<?php include_once 'inc_form_errors.php'; ?>

<div class="boxed">
	<h3> <i class="fa fa-plus"></i> <span class="badge badge-success pull-right"><?php echo $title; ?></span> <?php echo lang('add') ?></h3>
	<?php echo form_open(current_url(),array("class"=>"form-horizontal","id"=>"frm-create")); ?>

		<div class="boxed-inner seamless">
			<div class="control-group">
				<label class="control-label" for="mobile">会员</label>
				<div class="controls">
					ID：<?php echo $it['id']; ?> &nbsp;&nbsp;&nbsp;&nbsp;
					手机号码：<?php echo $it['phone']; ?> &nbsp; &nbsp;&nbsp;&nbsp;
					昵称：<?php echo $it['nick_name']; ?> &nbsp; &nbsp;&nbsp;&nbsp;
					注册时间：<?php echo date("Y-m-d H:i:s",$it['timeline']); ?>&nbsp; &nbsp;&nbsp;&nbsp;
					<br/>
				</div>
			</div>
			<?php if(!empty($it['email'])) {?>
			<div class="control-group">
				<label for="title" class="control-label">邮箱：</label>
				<div class="controls"><?php echo $it['email']; ?></div>
			</div>
			<?php } ?>
			<div class="control-group">
				<label for="title" class="control-label">性别：</label>
				<div class="controls">
					<?php if(!empty($it['sex']) && $it['sex']==1) {?>男<?php }else{?>女<?php } ?>
				</div>
			</div>			
			<?php if(!empty($it['birthday'])) {?>
			<div class="control-group">
				<label for="title" class="control-label">生日：</label>
				<div class="controls"><?php echo $it['birthday']; ?></div>
			</div>
			<?php } ?>

			<div class="control-group">
				<label for="title" class="control-label">设置新密码:</label>
				<div class="controls">
				<input type="checkbox" name="is_pwd"/>初始密码000000
				</div>
			</div>
			<div class="clear"></div>

		</div>

		<div class="boxed-footer">
			<input type="hidden" name="id" value="<?php echo $it['id'] ?>">
			<input type="submit" value=" <?php echo lang('submit'); ?> " class='btn btn-primary'>
			<input type="reset" value=' <?php echo lang('reset'); ?> ' class="btn btn-danger">
		</div>
	</form>
</div>

<?php include_once 'inc_ui_media.php'; ?>

<script type="text/javascript">
require(['adminer/js/ui','adminer/js/media','bootstrap-datetimepicker.zh'],function(ui,media){
	// timepick
	$('.timepicker').datetimepicker({'language':'zh-CN','format':'yyyy/mm/dd hh:ii:ss','todayHighlight':true});
	// ueditor处理
	ui.editor_create('content');

	// media 上传
	media.init();
	var articles_photos = <?php echo json_encode(one_upload(set_value("photo"))) ?>;
	media.show(articles_photos,"photo");
});

</script>
